package service
{
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.net.URLRequestHeader;
	import flash.net.URLRequestMethod;
	
	import mx.rpc.soap.WebService;

	public class DService
	{
		private var ns:String = new String();
		private var urlload:URLLoader;
		private var rq:URLRequest = new URLRequest();
		private var wsurl:String="http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx";
		public function DService()
		{

			var method:String="theStockCode";
			var argLabels:Array=["sh000001"] 
			
			
			rq.url = wsurl+"/getStockInfoByCode?theStockCode=sz000768" ;                        
			rq.method = URLRequestMethod.GET;
			rq.requestHeaders.push(new URLRequestHeader("Content-Type", "text/xml;charset=utf-8"));
			
			
			
			
			urlload=new URLLoader();
			
			urlload.addEventListener(Event.COMPLETE,comleteHandler);
			urlload.load(rq);
		}
		
		protected function comleteHandler(event:Event):void
		{
			var loader:URLLoader = event.target as URLLoader;
			trace(loader.data)
		}
		
		private function fun():void{
//			trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
		}
	}
}